﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SQLite;
using System.Windows.Forms;

namespace PTSJSC
{
    internal class SqlliteCon
    {
        public static SQLiteDataReader sQLiteDataReader(string str)
        {
            string dbPath = "database/ptsjsc.db";
            using (var connection = new SQLiteConnection($"Data Source={dbPath};Version=3"))
            {
                connection.Open();
                string sql = "SELECT * FROM sjscrwmxb";
                using (var command = new SQLiteCommand(sql, connection))
                {
                    using (SQLiteDataReader reader = command.ExecuteReader())
                    {
                        return reader;

                        
                    }
                }
            }
            
        }
    }
}
